package com.dlwx.firefighting.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.dlwx.firefighting.R;

/**
 * Created by Administrator on 2017/8/31.
 */

public class GoodsDetailImgAdapter extends  ListBaseAdapter<String> {

    private Context context;
    public GoodsDetailImgAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_goodsdetail_img;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        ImageView img= holder.getView(R.id.img);
        Glide.with(context).load(getDataList().get(position)).error(R.mipmap.error_small).into(img);
    }
}
